SDK/J Authentication Package ver1.0
RICOH Confidential

jp.co.ricoh.dsdk.scard.option.security
Class CredentialSet

java.lang.Object
  extended byjp.co.ricoh.dsdk.scard.option.security.CredentialSet

public class CredentialSet
extends java.lang.Object

A container for holding cryptographic credentials . Smartcards may protect access to the data stored on them by means of cryptography. Applications have to provide cryptographic credentials to the card services they are using, so the services can overcome this protection. These credentials are collected in instances of this class.


Constructor Summary
CredentialSet()
           
 
Method Summary
 void addCredential(int keyNum, SignCredential credential)
          Adds a credential to this set .
 void clear()
          Remove all credentials in this set .
 SignCredential getCredential(int keyNum)
          Retrieves a single credential from this set .
 SignCredential removeCredential(int keyNum)
          Removes a single credential from this set .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialSet

public CredentialSet()
Method Detail

addCredential

public void addCredential(int keyNum,
                          SignCredential credential)
Adds a credential to this set .

Parameters:
keyNum - the number of the credential, for example, may be a key number .
credential - the SignCredential to be added .

getCredential

public SignCredential getCredential(int keyNum)
Retrieves a single credential from this set .

Parameters:
keyNum - the number of the credential, for example, may be a key number .
Returns:
a credential matching the identification, or null if none is found .

removeCredential

public SignCredential removeCredential(int keyNum)
Removes a single credential from this set .

Parameters:
keyNum - the number of the credential, for example, may be a key number .
Returns:
the credential removed from set, or null if none is found .

clear

public void clear()
Remove all credentials in this set .


SDK/J Authentication Package ver1.0
RICOH Confidential